package com.guijianpan.system.repository;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import com.guijianpan.system.domain.User;

@Repository
public interface UserRepository extends CrudRepository<User, Long>,
		JpaSpecificationExecutor<User> {
	
	@Query("from User where name = ?1 and pwd = ?2")
	public User findByNameAndPwd(String name, String pwd);
	
}
